﻿@using SelfManagement.Web.Models.ViewModels.AccountModels
@model LoginModel
@using (Html.BeginForm("Login", "Account", FormMethod.Post, new { @class = "login-form js-ajax-form" }))
{
    <h3 class="form-title">登录账户</h3>
        @Html.ValidationSummary()
        @Html.HiddenFor(m => m.ReturnUrl)
        <div class="form-group">
            <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
            <label class="control-label visible-ie8 visible-ie9">@Html.DisplayNameFor(m => m.UserName)</label>
            <div class="input-icon">
                <i class="fa fa-user"></i>
                @Html.TextBoxFor(m => m.UserName, new { @class = "form-control placeholder-no-fix", @placeholder = "用户名", @autocomplete = "off" })
            </div>
            @Html.ValidationMessageFor(m => m.UserName)
        </div>
            <div class="form-group">
                <label class="control-label visible-ie8 visible-ie9">@Html.DisplayNameFor(m => m.Password)</label>
                <div class="input-icon">
                    <i class="fa fa-lock"></i>
                    @Html.PasswordFor(m => m.Password, new { @class = "form-control placeholder-no-fix", @placeholder = "请输入密码", @autocomplete = "off" })
                </div>
                @Html.ValidationMessageFor(m => m.Password)
            </div>
            <div class="form-actions">
                <label class="checkbox">
                    @Html.CheckBoxFor(m => m.RememberMe) @Html.DisplayNameFor(m => m.RememberMe)
                </label>
                <button type="submit" class="btn btn-info pull-right">
                    登录
                </button>
            </div>
                @*<div class="forget-password">
                    <h4>忘记密码了?</h4>
                    <p>
                        请立即联系管理员：xie40@qq.com
                    </p>
                </div>*@
                <div class="margin-top-20">@*create-account*@
                    <p>
                        还没有账户 ?&nbsp; <a href="javascript:;" id="register-btn">注册账户</a>
                    </p>
                </div>
}